﻿<UserControl x:Class="TFSCodeReviewHelper.ChangesetControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="25" d:DesignWidth="80">
    <UserControl.Resources>
        <Style x:Key="ChangeButtonStyle" TargetType="{x:Type Button}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding DifferenceParticiaption}" Value="None">
                    <Setter Property="Background" Value="White" />
                    <Setter Property="Content" Value="None"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding DifferenceParticiaption}" Value="First">
                    <Setter Property="Background" Value="LightGray" />
                    <Setter Property="Content" Value="First"/>
                </DataTrigger>
                <DataTrigger Binding="{Binding DifferenceParticiaption}" Value="Last">
                    <Setter Property="Background" Value="LightBlue" />
                    <Setter Property="Content" Value="Last"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>

    <StackPanel Name="_MainStackPanel" Orientation="Horizontal">
        <TextBlock Name="_SinceLast" Width="20" VerticalAlignment="Center" TextAlignment="Center">99</TextBlock>
        <Button Name="_ChangeButton" Width="60" Click="_ChangeButton_Click" Style="{StaticResource ChangeButtonStyle}"></Button>
    </StackPanel>
</UserControl>
